<%--Include SidebarMenu recursively --%>
<% if IsMemberArea %>
	<% if $Children %>
		<% loop $Children %>
			<li class="$ClassName<% if $Children %> submenu<% end_if %><% if $LinkingMode != link %> active open<% end_if %>">
				<a href="$Link" title="Go to the $Title.XML page">
					<% if $IsDefaultPage %>
						<i class="fa fa-home"></i>
					<% else_if $ClassName == MyAdminPage %>
						<i class="fa fa-user"></i>
					<% else_if $ClassName == MyEwalletPage %>
						<i class="fa fa-money"></i>
					<% else_if $ClassName == AccountConvertPage %>
						<i class="fa fa-exchange"></i>
					<% else_if $ClassName == AccountTransferPage %>
						<i class="fa fa-share"></i>
					<% else_if $ClassName == AccountWithdrawalPage %>
						<i class="fa fa-external-link"></i>
					<% else_if $ClassName == MyNetworkPage %>
						<i class="fa fa-users"></i>
					<% else_if $ClassName == CommissionPage %>
						<i class="fa fa-dollar"></i>
					<% else_if $ClassName == PurchaseOrderPage %>
						<i class="fa fa-file-text-o"></i>
					<% else_if $ClassName == MemberPackagePage %>
						<i class="fa fa-shopping-cart"></i> 
					<% else_if $ClassName == TradingPage %>
						<i class="fa fa-line-chart"></i> 
					<% else_if $ClassName == NewsPage %>
						<i class="fa fa-newspaper-o"></i> 
					<% end_if %>
					<span>$MenuTitle.XML</span>
					<% if $Children %>
						<i class="arrow fa fa-chevron-right"></i>
					<% end_if %>
				</a>
				<% if $Children %>
					<ul>
						<% loop $Children %>
							<li class="$ClassName<% if $LinkingMode != link %> active<% end_if %>">
								<a href="$Link" title="Go to the $Title.XML page">
									<span>$MenuTitle.XML</span>
								</a>
							</li>
						<% end_loop %>
					</ul>
				<% end_if %>
			</li>
		<% end_loop %>
	<% end_if %>
<% else %>
	<% loop $Children %>
		<li class="$ClassName">
			<a href="$Link" title="Go to the $Title.XML page">
				<span>$MenuTitle.XML</span>
			</a>
		</li>
	<% end_loop %>
<% end_if %>
